<style scoped src="./index.scss" lang="scss" rel="stylesheet/scss"></style>
<template src="./index.html"></template>
<script>
    export default {
        mixins: [Vue.prototype.$vFN.Mixins.Base, Vue.prototype.$vFN.Mixins.Edit],
        components: {},
        data() {
            return {
                appWindow: window,
                form: {
                    // 父参数
                    dictType: "",
                    // 数据标签
                    dictLabel: "",
                    // 数据数值
                    dictValue: "",
                    // 样式属性
                    cssClass: "",
                    // 表格回显样式
                    listClass: "",
                    // 排序
                    dictSort: 0,
                    // 是否启用
                    status: 0,
                    // 是否默认
                    isDefault: 0,
                    // 备注信息
                    remark: "",
                },
                // 页面接口地址
                apiUrl: {
                    create: "mall-admin/dict-data/create",
                    update: "mall-admin/dict-data/update",

                    detail: "mall-admin/dict-data/getItem",
                },
                cssClassList: [{
                        label: "主要",
                        value: "main"
                    },
                    {
                        label: "等待",
                        value: "waiting"
                    },
                    {
                        label: "进行中",
                        value: "loading"
                    },
                    {
                        label: "危险",
                        value: "danger"
                    },
                    {
                        label: "警告",
                        value: "warning"
                    },
                    {
                        label: "成功",
                        value: "success"
                    },
                    {
                        label: "失败",
                        value: "error"
                    },
                    {
                        label: "严重失败",
                        value: "serious"
                    },

                ],
            };
        },
        methods: {
            // 初始化
            async init() {
                // 初始化数据
                await this.mixinEdit_editBoxInit({
                    model: "form",
                    id: this.id,
                })
               
            },


        },
        mounted() {
            this.init();
        },
        activated() {},
    };
</script>